import $http from '../request';

export const $SysMenuApi = {

	getTopMenus: () => {
		return $http.$get("/system/menu/getTopMenus");
	},

	getSubMenusByParentId: (parentId) => {
		return $http.$get("/system/menu/getSubMenusByParentId?parentId=" + parentId)
	},

	getMenuData: () => {
		return $http.$get("/system/menu/getMenuData")
	},

	getMenuVoList: (searchParam) => {
		return $http.$get("/system/menu/getMenuVoList?searchParam=" + searchParam)
	},

	addMenu: (menuParams) => {
		return $http.$post("/system/menu/add", menuParams, {});
	},

	batchDelete: (param) => {
		return $http.$post('/system/menu/batchRemove', param, {})
	},





}
